package com.chenglai.seckill.feign;

import com.chenglai.commonutils.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 类描述：
 *
 * @Author rxh
 * @Date 2023/11/28 15:12
 */
@FeignClient(value = "pay")
public interface PayService {

    @PostMapping("/pay/refund")
    Result refund(@RequestParam(value = "transactionId") String transactionId,
                  @RequestParam(value = "shopId") Integer shopId,
                  @RequestParam(value = "totalNum") Double totalNum,
                  @RequestParam(value = "refundFee") Double refundFee,
                  @RequestParam(value = "refundDesc") String refundDesc);
}
